package com.book.dao;

import com.book.pojo.OrderItem;

import java.util.List;

public interface OrderItemDao {

    /**
     * 存入购物车内的书，每个OrderItem对应一本书
     * @param orderItem 单本书的购物车信息
     * @return
     */
    public int saveOrderItem(OrderItem orderItem);

    List<OrderItem> queryOrderItemsByOrder(String id);
}
